import {Component, OnInit} from '@angular/core';
import {RouterService} from '@kylin/router';

@Component({
    selector: 'kylin-product',
    templateUrl: './product.component.html',
    styleUrls: ['./product.component.less']
})
export class ProductComponent implements OnInit {
    productList = [
        {
            img: 'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1962533290,3366561561&fm=26&gp=0.jpg',
            name: '农业监控',
            id: 0,
        },
        {
            img: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2236965306,1288737886&fm=26&gp=0.jpg',
            name: '林地管理',
            id: 1
        },
        {
            img: 'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1962533290,3366561561&fm=26&gp=0.jpg',
            name: '草地管理',
            id: 2
        },
        {
            img: 'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1962533290,3366561561&fm=26&gp=0.jpg',
            name: '农业监控',
            id: 3,
        },
        {
            img: 'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1962533290,3366561561&fm=26&gp=0.jpg',
            name: '更多产品...',
            id: 3,
        }
    ];

    constructor(private router: RouterService) {
    }

    ngOnInit() {
    }

    seeProductDetail(id) {
        this.router.navigate('home/platform/product/productDetail')
    }

}
